package com.hanggold.springboot.lesson4;

import com.hanggold.springboot.lesson4.repository.OneDemoRepository;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;


//@ComponentScan(basePackageClasses= ConfigAnnotationTest.class)
public class ConfigAnnotationTest {

    public static void main(String[] args) {


        AnnotationConfigApplicationContext annotationConfigApplicationContext = new AnnotationConfigApplicationContext(ConfigAnnotationTest.class);

        OneDemoRepository oneDemoRepository =   annotationConfigApplicationContext.getBean(OneDemoRepository.class);

        System.out.println(123);

    }


}
